<?php
/**
 * Created by PhpStorm.
 * User: liyu
 * Date: 2018/4/26
 * Time: 下午6:11
 */

namespace app\api\validate;


use app\common\validate\BaseValidate;

class WgAreaValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require',
        'name' => 'require',
        'address' => 'require',
        'area_head' => 'require',
        'page' => 'require',
        'org_id' => 'require'
    ];

    protected $scene = [
        'create' => ['name','address','area_head','org_id'],
        'update' => ['id'],
        'getList' => ['page']
    ];
}